/* @import './reset.css'; */
*{
  padding: 0;
  margin:0;
}

.myhead {
  padding: 5px 0 10px;
  background-color: lightblue;
  color: #f0f8ff;
  text-align: center;
}
.myhead h1 {
  font-size: 60px;
  color: transparent;
  background-clip: text;
  background-image: linear-gradient(10deg,red,yellow,green);
}
.myhead .add-todo {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.myhead .add-todo input {
  width: 400px;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  outline: none;
  border: solid 1px white;
}
.myhead .add-todo button {
  display: inline-block;
  width: 80px;
  background-color: #eee;
  color: #0b87ff;
  line-height: 30px;
  border: none;
  border-radius: 3px;
  vertical-align: middle;
}
.myhead .add-todo button:hover {
  cursor: pointer;
  background-color: #fff;
  color: #ff6700;
}


.todo-list li {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
  border-radius: 5px;
  padding-left: 20px;
  height: 40px;
  line-height: 40px;
 
  vertical-align: middle;
}
.todo-list li span {
  
  font-size: 16px;
  flex: 1;
  margin-left: 20px;
}
.todo-list li button {
  padding: 0 10px;
}
.todo-list li button:hover {
  color: red;
  cursor: pointer;

}
/* 奇数行显示不同的颜色 */
.todo-list:nth-child(odd) {
  background-color: rgba(172, 171, 177, 0.2);
}

/* 光标移入的时候背景变暗 */
.todo-list ul li:hover {
  cursor: pointer;
  background-color: #85ea94;
  opacity: 0.8;
}


.todo-footer {
  display: flex;
  margin-top: 10px;
  padding: 10px 40px;
  background-color: #87ceeb;
}
.todo-footer div {
  flex: 1;
  margin-left: 20px;
}
.todo-footer button {
  margin-left: 10px;
  padding: 0 10px;
}
.todo-footer button:hover {
  cursor: pointer;
  color: #ff6700;
  border: 0;
}